//
//  PhotoScrollView.m
//  Dispatch
//
//  Created by hyeyeon on 14. 1. 21..
//  Copyright (c) 2014년 hyeyeon. All rights reserved.
//

#import "PhotoScrollView.h"
#import "PhotoViewController.h"

@implementation PhotoScrollView
@synthesize parent, imageView;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

#pragma mark - 생성

-(void)makeImageView{
    
    
}

#pragma mark - 터치
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
    
    PhotoViewController *pController = (PhotoViewController*)self.parent;
    [pController changeFullScreen];
}


//-(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{
//    
//    PhotoViewController *photo = (PhotoViewController*)self.parent;
//    return photo.secondView;
//}
//
//- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale{
//    
//}


@end
